﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PST_M02.aspx.cs" MasterPageFile="~/common/pages/ASM.Master" Inherits="Com.AlbLab.CR.Web.pages.PST_M02" %>
<%@ Register src="../../controls/IntestaSchedaPratica.ascx" tagname="IntestaSchedaPratica" tagprefix="uc1" %>
<%@ Register src="../../controls/ValidaRichiesta.ascx" tagname="ValidaRichiesta" tagprefix="uc2" %>
<%@ Register src="~/controls/Response_M02.ascx" tagname="rr" tagprefix="uc3" %>
<%@ Register src="~/controls/DatiRecuperatiASMWorld.ascx" tagname="datidb" tagprefix="uc4" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
     
     <uc1:IntestaSchedaPratica ID="IntestaSchedaPratica1" runat="server" />
     <uc2:ValidaRichiesta ID="ValidaRichiesta1" runat="server" onClick="btnSave_OnClick" />
     <div class="header-panel-gray">
         <div class="header-title">
            <div class="header-text-left">
               <label>Dati identificativi richiesta</label>
            </div>
         </div>
     </div>
     <div id="pnl_pratica_dati_iden_rich" class="content-panel-gray">
               <table style="width: 100%;">
                    <tr>
                      <td class="lbl" style="width: 250px">Codice pratica utente</td>
                      <td><asp:Label ID="LBL_codice_pratica_utente" width="160px" runat="server" Text="<%# PraticaDB.Gep_testata.Tes_Cod_Prat_Utente%>" SkinID="lrb8" ></asp:Label></td>
                      <td class="lbl" style="width: 250px">Partita IVA mittente</td>
                      <td><asp:Label ID="lbl_piva_utente" width="160px" runat="server" Text="<%# PraticaDB.Gep_testata.Tes_Piva_Utente%>" SkinID="lrb8"></asp:Label></td>
                      <td class="lbl" style="width: 160px">Partita IVA distributore</td>
                      <td><asp:Label ID="lbl_piva_distri" width="160px" runat="server" Text="<%# PraticaDB.Gep_testata.Tes_Piva_Distributore%>" SkinID="lrb8"></asp:Label></td>
                    </tr>
                   <tr>
                      <td class="lbl" style="width: 250px">Codice contratto dispacciamento</td>
                      <td ><asp:Label ID="Label15" width="160px" runat="server" Text="<%# PraticaDB.Gep_testata.Tes_Cod_Contr_Disp%>" SkinID="lrb8"></asp:Label></td>
                      <td class="lbl" style="width: 250px">Codice POD</td>
                      <td ><asp:Label ID="Label1" width="160px" runat="server" Text="<%# PraticaDB.Gep_testata.Tes_Pod %>" SkinID="lrb8"></asp:Label></td>
                                         </tr>
                     
               </table>
    </div>
    <div class="header-panel-gray">
    <div class="header-title">
        <div class="header-text-left">
            <label>
                Date pratica</label>
        </div>
    </div>
</div>
<div id="Div6" class="content-panel-gray">
    <table style="width: 100%;">
        <tr>
            <td class="lbl" style="width: 150px">
                Arrivo</td>
            <td>
                <asp:Label ID="Label22" runat="server" Text='<%# (PraticaDB.Gep_testata.Tes_Dt_Arr_Pra.ToString()== "" || PraticaDB.Gep_testata.Tes_Dt_Arr_Pra.ToString()== "") ? "":PraticaDB.Gep_testata.Tes_Dt_Arr_Pra.ToString("dd MMM yyyy")%>'
                    SkinID="lrb8"></asp:Label>
            </td>
            <td class="lbl" style="width: 150px">
                Inserimento</td>
            <td>
                <asp:Label ID="Label23" runat="server" Text='<%# (PraticaDB.Gep_testata.Tes_Dt_Ins_Pra.ToString()== "" || PraticaDB.Gep_testata.Tes_Dt_Ins_Pra.ToString()== "01/01/0001 0.00.00") ? "":PraticaDB.Gep_testata.Tes_Dt_Ins_Pra.ToString("dd MMM yyyy")%>'
                    SkinID="lrb8"></asp:Label>
            </td>
            <td class="lbl" style="width: 150px">
                Chiusura
                </td>
            <td>
                <asp:Label ID="Label24" runat="server" Text='<%# (PraticaDB.Gep_testata.Tes_Dt_Chi_Pra.ToString()== "" || PraticaDB.Gep_testata.Tes_Dt_Chi_Pra.ToString()== "01/01/0001 0.00.00") ? "":PraticaDB.Gep_testata.Tes_Dt_Chi_Pra.ToString("dd MMM yyyy")%>'
                    SkinID="lrb8"></asp:Label>
            </td>
            <td class="lbl" style="width: 150px">
                Invio
                </td>
            <td>
                <asp:Label ID="Label26" runat="server" Text='<%# (PraticaDB.Gep_testata.Tes_Dt_Inv_Pra.ToString()== "" || PraticaDB.Gep_testata.Tes_Dt_Inv_Pra.ToString()== "01/01/0001 0.00.00") ? "":PraticaDB.Gep_testata.Tes_Dt_Inv_Pra.ToString("dd MMM yyyy")%>'
                    SkinID="lrb8"></asp:Label>
            </td>
        </tr>
    </table>
</div>
    <div class="header-panel-gray">
         <div class="header-title">
            <div class="header-text-left">
               <label>Dati cliente finale</label>
            </div>
         </div>
     </div>
     <div id="Div1" class="content-panel-gray">
               <table style="width: 100%;">
                   <tr>
                      <td class="lbl" style="width: 140px">Ragione sociale</td>
                      <td><asp:Label ID="Label3" runat="server" Text="<%# PraticaDB.Dm02_Rag_Soc%>" SkinID="lrb8"></asp:Label></td>
                      <td class="lbl" style="width: 160px">Cognome e nome</td>
                      <td><asp:Label ID="Label7" runat="server" Text="<%# String.Concat(PraticaDB.Dm02_Cognome,' ',PraticaDB.Dm02_Nome)%>" SkinID="lrb8"></asp:Label></td>
                   </tr>
                   <tr>
                      <td class="lbl" style="width: 140px">Partita IVA</td>
                      <td><asp:Label ID="Label9" runat="server" Text="<%# PraticaDB.Gep_testata.Tes_Pariva_Cli %>" SkinID="lrb8"></asp:Label></td>
                      <td class="lbl" style="width: 160px">Codice fiscale</td>
                      <td><asp:Label ID="Label10" runat="server" Text="<%# PraticaDB.Gep_testata.Tes_Codfis_Cli  %>" SkinID="lrb8"></asp:Label></td>
                   </tr>
               </table>
    </div>
     <div class="header-panel-gray">
         <div class="header-title">
            <div class="header-text-left">
               <label>Dati ubicazione fornitura</label>
            </div>
         </div>
     </div>
     <div id="Div2" class="content-panel-gray">
               <table style="width: 100%;">
                   <tr>
                      <td class="lbl" style="width: 140px">Indirizzo</td>
                      <td colspan=6><asp:Label ID="Label2" runat="server" Text="<%# String.Concat(PraticaDB.Dm02_Toponimo,' ',PraticaDB.Dm02_Via,' ',PraticaDB.Dm02_Civ,' ',PraticaDB.Dm02_Scala,' ',PraticaDB.Dm02_Piano,' ',PraticaDB.Dm02_Int) %>" SkinID="lrb8"></asp:Label></td>
                   </tr>
                   <tr>   
                      <td class="lbl" style="width: 160px">CAP</td>
                      <td><asp:Label ID="Label4" runat="server" Text="<%# PraticaDB.Dm02_Cap%>" SkinID="lrb8"></asp:Label></td>
                                            <td class="lbl" style="width: 160px">Istat</td>
                      <td><asp:Label ID="Label5" runat="server" Text="<%# PraticaDB.Dm02_Istat%>" SkinID="lrb8"></asp:Label></td>
                                            <td class="lbl" style="width: 160px">Comune</td>
                      <td><asp:Label ID="Label6" runat="server" Text="<%# PraticaDB.Dm02_Comune%>" SkinID="lrb8"></asp:Label></td>
                                            <td class="lbl" style="width: 160px">Provincia</td>
                      <td><asp:Label ID="Label8" runat="server" Text="<%# PraticaDB.Dm02_Prov%>" SkinID="lrb8"></asp:Label></td>

                   </tr>
               </table>
    </div>
      <div class="header-panel-gray">
         <div class="header-title">
            <div class="header-text-left">
               <label>Dati tecnici richiesto</label>
            </div>
         </div>
     </div>
     <div id="Div4" class="content-panel-gray">
               <table style="width: 100%;">
                   <tr>
                    <td class="lbl" style="width: 140px">Dati richiesti</td>
                      <td><asp:Label ID="Label12" runat="server" Text="<%# PraticaDB.Dm02_Dati_Tec_Ric%>" SkinID="lrb8"></asp:Label></td>
                   </tr>
                                      <tr>
                    <td class="lbl" style="width: 140px">Quesiti</td>
                      <td><asp:Label ID="Label13" runat="server" Text="<%# PraticaDB.Dm02_Rif_Quesiti%>" SkinID="lrb8"></asp:Label></td>
                   </tr>
               </table>
    </div>
     <div class="header-panel-gray">
         <div class="header-title">
            <div class="header-text-left">
               <label>Eventuale reclamo</label>
            </div>
         </div>
     </div>
     <div id="Div5" class="content-panel-gray">
               <table style="width: 100%;">
                   <tr>
                    <td class="lbl" style="width: 140px">Codice reclamo</td>
                      <td><asp:Label ID="Label14" runat="server" Text="<%# PraticaDB.Dm02_Cod_Reclamo%>" SkinID="lrb8"></asp:Label></td>
                   </tr>
                                      <tr>
                    <td class="lbl" style="width: 140px">Riferimento</td>
                      <td><asp:Label ID="Label16" runat="server" Text="<%# PraticaDB.Dm02_Rif_Reclamo%>" SkinID="lrb8"></asp:Label></td>
                   </tr>
               </table>
    </div>
       <div class="header-panel-gray">
         <div class="header-title">
            <div class="header-text-left">
               <label>Note</label>
            </div>
         </div>
     </div>
     <div id="Div3" class="content-panel-gray">
               <table style="width: 100%;">
                   <tr>
                      <td><asp:Label ID="Label11" runat="server" Text="<%# PraticaDB.Gep_testata.Tes_Note%>" SkinID="lrb8"></asp:Label></td>
                   </tr>
               </table>
    </div>
    <uc4:datidb ID="DatiDBASM" runat="server" />
    <uc3:rr ID="Rr01" runat="server" OnSave="Response_onSave" />
</asp:Content>
